import { createRouter, createWebHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: import('@/1-home/body.vue')
  },
  {
    path: '/classify',
    name: 'Classify',
    component: import('@/1-classify/body.vue')
  },
  {
    path: '/introduce',
    name: 'Introduce',
    component: import('@/1-introduce/introduce1.vue'),
    props: true,
  },
  {
    path: '/body1',
    name: 'body1',
    component: import('@/1-home/body.vue'),
    props: true,
  },
  {
    path: '/login',
    name: 'Login',
    component: import('@/views/login/Login.vue')
  },
  {
    path: '/map',
    name: 'map',
    component: import('@/1-orders/map.vue')
  },
  {
    path: '/orderList',
    name: 'orderList',
    component: import('@/1-orders/orderList.vue')
  },
  {
    path: '/pay',
    name: 'pay',
    component: import('@/1-orders/pay.vue')
  },
  {
    path: '/search',
    name: 'search',
    component: import('@/1-classify/search.vue')
  },

];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
